From: Florian Müllner Date: Tue, 15 Dec 2020 17:02:51 +0000 (+0100) Subject: ci: Add some more commit message rules X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~634 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=15aabdf2879b3b98e2c48146fa562bbe85e5b116;p=gnome-shell.git ci: Add some more commit message rules Mutter added some additional rules, for instance to enforce proper capitalization style in commit messages. That's a good idea, and now that adding rules is easy, let's adapt them to gnome-shell. Part-of: --- diff --git a/.gitlab-ci/commit-rules.yml b/.gitlab-ci/commit-rules.yml index ef7d0805a..9770f4515 100644 --- a/.gitlab-ci/commit-rules.yml +++ b/.gitlab-ci/commit-rules.yml @@ -2,3 +2,12 @@ patterns: deny: - regex: '^$CI_MERGE_REQUEST_PROJECT_URL/(-/)?merge_requests/$CI_MERGE_REQUEST_IID$' message: Commit message must not contain a link to its own merge request + - regex: '^(st-|St)' + message: Commit message subject should not be prefixed with 'st-' or 'St', use 'st/' instead + where: subject + - regex: '^[^:]+: [a-z]' + message: "Commit message subject should be properly Capitalized. E.g. 'window: Marginalize extradicity'" + where: subject + - regex: '^\S*\.(js|c|h):' + message: Commit message subject prefix should not include .c, .h etc. + where: subject